/*********************************************************
          File Name:9.41.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Mon 14 Sep 2015 10:12:28 PM CST
**********************************************************/

#include <iostream>
using namespace std;

#include <vector>
#include <string>

int main()
{
        vector<char> v{'t', 'e', 's', 't', '\0'};       // shall content '\0'
        string s(v.begin(), v.end() - 1);

        cout << s << endl;
        return 0;
}
